<?php
/**
 * Created by PhpStorm.
 * User: zhongyb
 * Date: 16-11-29
 * Time: 下午2:28
 */

namespace common\entities\common;

use common\entities\ConfigEntity;
use Yii;

/**
 * This is the model class for table "myscrm_organization_remind_details".
 *
 * @property string $detailsId
 * @property string $CreatedOn
 * @property string $CreatedBy
 * @property string $ModifiedOn
 * @property string $ModifiedBy
 * @property string $organizationId
 * @property string $projectId
 * @property string $contractId
 * @property string $appCode
 * @property integer $isXq
 * @property integer $renewStatus
 * @property integer $noRenewReason
 * @property integer $isDone
 * @property string $remindId
 */
class MyscrmOrganizationRemindDetailsEntity extends ConfigEntity
{
    /**
     * @inheritdoc
     */
    public static function tableName()
    {
        return 'myscrm_organization_remind_details';
    }

    /**
     * @inheritdoc
     */
    public function rules()
    {
        return [
            [['detailsId', 'organizationId', 'projectId', 'contractId', 'appCode'], 'required'],
            [['CreatedOn', 'ModifiedOn'], 'safe'],
            [['isXq', 'renewStatus', 'noRenewReason', 'isDone'], 'integer'],
            [['detailsId', 'CreatedBy', 'ModifiedBy', 'organizationId', 'projectId', 'contractId', 'remindId'], 'string', 'max' => 36],
            [['appCode'], 'string', 'max' => 200]
        ];
    }

    /**
     * @inheritdoc
     */
    public function attributeLabels()
    {
        return [
            'detailsId' => '唯一ID',
            'CreatedOn' => '创建时间',
            'CreatedBy' => '创建人',
            'ModifiedOn' => '修改时间',
            'ModifiedBy' => '修改人',
            'organizationId' => '租户ID',
            'projectId' => '项目ID',
            'contractId' => '授权ID',
            'appCode' => '应用CODE',
            'isXq' => '是否续签，1是，0否',
            'renewStatus' => '续签进展，1商务谈判中，2合同会签中，3合同已归档款项未回，4续签已完成',
            'noRenewReason' => '不续签原因，1项目售罄，2应用不好，3其他',
            'isDone' => '是否已经处理过项目禁用事宜',
            'remindId' => '关联的主表ID',
        ];
    }
}